package com.zxx.casserver.modules.dictionary.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 字典项配置实体信息
 *
 * @author zhoukai
 * @date 2020/5/8 16:14
 */
@TableName("cas_dictionary")
public class DictionaryDO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键自增
     */
    @TableId(value = "dict_id", type = IdType.AUTO)
    private Integer dictId;

    /**
     * 业务系统标识
     */
    private Long appId;

    /**
     * 字典项组
     */
    private String group;

    /**
     * 字典类型：1系统 2自定义
     */
    private Integer type;

    /**
     * 字典项：页面值
     */
    private String label;

    /**
     * 字典项：实际值
     */
    private String value;

    /**
     * 描述
     */
    private String remark;

    /**
     * 创建时间
     */
    private Long createTime;
    /**
     * 更新时间
     */
    private Long updateTime;

    public Integer getDictId() {
        return dictId;
    }

    public void setDictId(Integer dictId) {
        this.dictId = dictId;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }


    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Long getAppId() {
        return appId;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "DictionaryDO{" +
                "dictId=" + dictId +
                ", appId=" + appId +
                ", group='" + group + '\'' +
                ", type=" + type +
                ", label='" + label + '\'' +
                ", value='" + value + '\'' +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
